package org.rjxh.examfront.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.rjxh.examfront.pojo.ExamQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 考试考题 Mapper 接口
 * </p>
 *
 * @author BA7LGJ
 * @since 2024-04-04
 */
public interface ExamQuestionMapper extends BaseMapper<ExamQuestion> {

    IPage<ExamQuestion> selectQuestionsByExamId(IPage<ExamQuestion> page,@Param("examId") Long examId);


    List<ExamQuestion> selectQuestionIncludeAnswer(Long examId);
}
